package com.sky.vo;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import com.sky.domain.BaseEntity;
import lombok.*;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@SearchBean(tables = "setmeal_dish sd left join dish d on sd.dish_id = d.id and d.del_flag = '0' ",
        where = "sd.del_flag = '0'", autoMapTo = "sd")
public class DishItemVO extends BaseEntity {


    @DbField("sd.setmeal_id")
    private Long setmealId;

    //菜品名称
    @DbField("sd.name")
    private String name;

    //份数
    @DbField("sd.copies")
    private Integer copies;

    //菜品图片
    @DbField("d.image")
    private String image;

    //菜品描述
    @DbField("d.description")
    private String description;
}
